/*
 * @(#)TemplateType.java 2011-12-07
 *
 * Copyright 2011 北龙中网（北京）科技有限责任公司. All rights reserved.
 */
package cn.shangjia.shop.domain.type;

import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
 * @version 1.0, 2011-12-07 16:36:14
 * @since 1.0
 */
public enum TemplateType {
	
	A("templet_01","slfjkl") ,
	B("templet_02","sfsdf") ,
	C("templet_03","cxvxcv") ,
	D("templet_04","werer") ,
	E("templet_05","sdfsdf") ,
	F("templet_06","safsdf") ,
	G("templet_07","sdfee") ,
	H("templet_08","sdfe") ,
	J("templet_09","xcvdff") ;
	
	private String value;
	private String descn;
	
	TemplateType(String value, String descn) {
		this.value = value;
		this.descn = descn;
	}

	public String getValue() {
		return value;
	}

	public String getDescn() {
		return descn;
	}
	
	private final static List<String> valueList = new LinkedList<String>();
	
	public static List<String> valueList() {
		if (valueList != null && !valueList.isEmpty())
			return valueList;
		synchronized (valueList) {
			for (TemplateType v : values()) {
				valueList.add(v.getValue());
			}
		}
		return valueList;
	}

}
